<%@ page language="java" import="java.util.*"
	contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="layout.tld" prefix="e"%>
<e:override name="title">登录_用户_Thinking</e:override>
<e:block name="other_style">
	<link rel="stylesheet" type="text/css"
		href="<c:url value="/resource/datepicker/datepicker.css"/>"></link>
</e:block>
<e:override name="content">
	<div class="container">
		<div class="row">
			<div class="col-md-3"></div>
			<div class="col-md-6">
				<div class="bbox bbox050">
					<div class="page-header">
						<h1>用户注册</h1>
					</div>
					<div class="bc">
						<form  method="POST"
							action="<c:url value="/user/register"/>"
							onsubmit="return registerUser();">

							<div class="form-group">
								<label>Email</label> <input name="email" type="email"
									class="form-control" placeholder="Email" id="email"> <span
									class="help-block" id="emailts" style=""></span>
							</div>
							<div class="form-group">
								<label>用户名：</label> <input name="username" type="text"
									class="form-control" placeholder="username" id="username">
								<span class="help-block" id="namets"></span>
							</div>
							<div class="form-group">
								<label>密码：</label> <input name="password" type="password"
									class="form-control" placeholder="" id="password"><span
									class="help-block" id="passts"></span>

							</div>

							<div class="form-group">
								<label>重复密码：</label> <input name="repwd" type="password"
									class="form-control" placeholder="" id="repwd"> <span
									class="help-block" id="passrts"></span>
							</div>

							<div class="form-group">
								<label>生日：</label> <input name="birthday" type="text"
									class="form-control" id="birthday" readonly="readonly"  placeholder="09/12/2015">
							</div>
							<div class="form-group">
								<label>性别：</label> <select name="sex">
									<option value="男">男</option>
									<option value="女">女</option>
								</select>
							</div>

							<div class="form-group">
								<label>验证码:</label> <input id="index_code" name="code"
									type="text" class="form-control" id="code" /><img id="imgObj"
									alt="验证码" src="<c:url value="/code"/>" /> <a
									href="<c:url value="/user/login"/>" onclick="changeImg()">换一张</a>
								<span class="help-block" id="codets"></span>
							</div>

							<div class="form-group">

								<input type="hidden" name="fuserid" value="0" /> <input
									type="hidden" name="token"
									value="af2aa04fe0ed42365810977f553e0fb8ff38cd3d" />
								<button type="submit"
									class="btn btn-fat btn-success btn-lg btn-block" >注册</button>

							</div>

						</form>
						<!-- 						
						<div>
							<a
								href="http://www.thinksaas.cn/index.php?app=pubs&ac=plugin&plugin=qq&in=login"><img
								src="http://www.thinksaas.cn/plugins/pubs/qq/images/login.png"></a>
							<a
								href="http://www.thinksaas.cn/index.php?app=pubs&ac=plugin&plugin=weibo&in=login"><img
								src="http://www.thinksaas.cn/plugins/pubs/weibo/images/weibo_login.png"></a>
							<a
								href="http://www.thinksaas.cn/index.php?app=pubs&ac=plugin&plugin=douban&in=login"><img
								src="http://www.thinksaas.cn/plugins/pubs/douban/login_with_douban_24.png"></a>
						</div>
 -->
					</div>
				</div>

			</div>

			<div class="col-md-3"></div>
		</div>

	</div>

</e:override>
<e:override name="more_script">
	<script src="<c:url value="/resource/user/user.js"/>"
		type="text/javascript"></script>
	<script
		src="<c:url value="/resource/datepicker/bootstrap-datepicker.js" />"></script>
	<script type="text/javascript">
		$(document).ready(function() {
			$('#birthday').datepicker({});
		});
	</script>
</e:override>

<%@include file="/main.jsp"%>